package com.promis.widget.mediapicker.manager;

/**
 * Created by jidanbo on 2018/3/26.
 */

public class VideoPickerManager {

    private static VideoPickerManager manager;

    private VideoPickerManager() {}

    public synchronized static VideoPickerManager getInstance() {
        if (manager == null) {
            manager = new VideoPickerManager();
        }
        return manager;
    }

    private int maxFileSize = 188743680;

    private int maxDuration = 15;

    private VideoPickerListener videoPickerListener;

    public int getMaxFileSize() {
        return maxFileSize;
    }

    public int getMaxDuration() {
        return maxDuration;
    }

    public void setMaxDuration(int maxDuration) {
        this.maxDuration = maxDuration;
    }

    public void setMaxFileSize(int maxFileSize) {
        this.maxFileSize = maxFileSize;
    }

    public VideoPickerListener getVideoPickerListener() {
        return videoPickerListener;
    }

    public void setVideoPickerListener(VideoPickerListener videoPickerListener) {
        this.videoPickerListener = videoPickerListener;
    }
}
